Repository navigation
Conversation
In Treeland (Wayland) environment, the global search window is created as a native xdg_toplevel without skip_flags set, causing it to appear as an unknown icon in the taskbar. This patch adds app_id-based filtering in TreeLandWindow::shouldSkip() using a DConfig-managed skip list. Changes: - TreeLandWindow::shouldSkip(): add null guard for m_foreignToplevelHandle, check app_id against DConfig skip list instead of unconditionally returning false - Connect appidChanged -> shouldSkipChanged to handle async app_id arrival - Add taskbarSkipAppIds() to TaskManagerSettings - Add TASKMANAGER_TASKBAR_SKIP_APPIDS constant to globals.h - Add taskbarSkipAppIds DConfig item with default app IDs for global search Issue: https://agent-dev.uniontech.com/dde/issues/01a1bf0f-bf59-7526-910f-5d86adccd830
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复说明
修复 Treeland 环境下唤起全局搜索后任务栏展示未知图标的问题。
问题
在 Treeland(Wayland)环境下,全局搜索窗口作为原生 Wayland xdg_toplevel 窗口创建,dde-shell 的
TreeLandWindow::shouldSkip()无条件返回false,导致该窗口在任务栏显示为未知图标。方案
在 dde-shell 侧增加基于 app_id 的 DConfig 配置过滤逻辑。
变更内容
TreeLandWindow::shouldSkip(): 从无条件返回false改为基于 app_id 匹配 DConfig 配置的跳过列表,添加 null 守卫setForeignToplevelHandle(): 新增appidChanged → shouldSkipChanged信号连接TaskManagerSettings: 新增taskbarSkipAppIds()方法globals.h: 新增TASKMANAGER_TASKBAR_SKIP_APPIDS常量taskbarSkipAppIds配置项关联 Issue
DDE-586
PMS Bug
https://pms.uniontech.com/bug-view-291509.html